package hit.core;
import java.util.List;

public class ItemNotification {
	private Type _type;
	private List<Item> _modifiedItems;
	
	public enum Type{
		EDIT_ITEM, ADD_ITEMS, REMOVE_ITEM, TRANSFER_ITEM
	}
	
	/**
	 * Default Constructor.
	 * @param type Enum describing what this ItemNotification is notifying about.
	 * @param items A {@link List} of {@link Item}s to pass around with this notification.
	 */
	public ItemNotification(Type type, List<Item> items){
		_type = type;
		_modifiedItems = items;
	}
	
	/**
	 * 
	 * @return The notification type
	 */
	public Type getType() {
		return _type;
	}

	/**
	 * 
	 * @return The {@link List} of {@link Item}s associated with this notification.
	 */
	public List<Item> getModifiedItems() {
		return _modifiedItems;
	}
}
